package org.jeecg.modules.friends.base;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;


/**
 * @author
 * Created on 2023-05-12
 */
public class IpUtils {
    public static String getClientIP() {
        ServletRequestAttributes servletRequestAttributes =
                (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
        if (servletRequestAttributes == null) {
            return "";
        } else {
            return "";
        }
    }

}
